//
//  MainTableViewCell.m
//  WeiXinSearching
//
//  Created by longrise on 2017/9/11.
//  Copyright © 2017年 程虎. All rights reserved.
//

#import "MainTableViewCell.h"
@implementation MainTableViewCell

- (id)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        //列表中姓名
        self.labName = [[UILabel alloc]init];
        self.labName.textColor = [UIColor blackColor];
        self.labName.font = [UIFont systemFontOfSize:16];
        [self addSubview:self.labName];
        
        [self.labName mas_makeConstraints:^(MASConstraintMaker *make) {
            make.left.equalTo(self.mas_left).offset(10*kScreenScaleX);//使左边等于self.view的左边，间距为0
            make.width.mas_equalTo(290*kScreenScaleX);
            make.height.mas_equalTo(20*kScreenScaleY);
            make.centerY.equalTo(self);
        }];
    }
    return self;
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
